set term pdf enhanced
set output "reward.pdf"

set xlabel "Prob. of person in shop - U(x, x+0.05)"
set ylabel "Average accumulated reward from 100 episodes"

set title "Average accumulated reward - 5 shops"

plot "./1\ truck/vic.txt" using 1:2:3 with errorbars title "VIC(1)" lt 1,\
"./1\ truck/maxd.txt" using 1:2:3 with errorbars title "V_H(1)" lt 2,\
"./2\ trucks/vic.txt" using 1:2:3 with errorbars title "VIC(2)" lt 3,\
"./2\ trucks/maxd.txt" using 1:2:3 with errorbars title "V_H(2)" lt 4,\
"./3\ trucks/vic.txt" using 1:2:3 with errorbars title "VIC(3)" lt 5,\
"./3\ trucks/maxd.txt" using 1:2:3 with errorbars title "V_H(3)" lt 6,\
"./1\ truck/vic.txt" using 1:2 notitle with lines lt 1,\
"./1\ truck/maxd.txt" using 1:2 notitle with lines lt 2,\
"./2\ trucks/vic.txt" using 1:2 notitle with lines lt 3,\
"./2\ trucks/maxd.txt" using 1:2 notitle with lines lt 4,\
"./3\ trucks/vic.txt" using 1:2 notitle with lines lt 5,\
"./3\ trucks/maxd.txt" using 1:2 notitle with lines lt 6